package com.doom.a3rdlibdemo.decorator;

public class PizzaC extends Decorator {

    Pizza pizza;

    public PizzaC(Pizza pizza){
        this.pizza = pizza;
    }

    @Override
    public double getPrice(){
        return pizza.getPrice() + 30;
    }

    @Override
    public String getName(){
        return pizza.getName() + "+牛肉";
    }
}
